package com.xxxx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 公告表
 * </p>
 *
 * @author mi-nuo-ji
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_announcement")
@ApiModel(value="Announcement对象", description="公告表")
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "anid", type = IdType.AUTO)
    private Integer anid;

    @ApiModelProperty(value = "标题")
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss" , timezone = "Asia/Shanghai")
    private LocalDateTime release_time;

    @ApiModelProperty(value = "展示时间_开始")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss" , timezone = "Asia/Shanghai")
    private LocalDateTime show_start_time;

    @ApiModelProperty(value = "展示时间_结束")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss" , timezone = "Asia/Shanghai")
    private LocalDateTime show_end_time;

    private Integer release_status;

    @ApiModelProperty(value = "内容")
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss" , timezone = "Asia/Shanghai")
    private LocalDateTime ctime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss" , timezone = "Asia/Shanghai")
    private LocalDateTime utime;

    private Integer type;


}
